import { createApp } from 'vue' //引入createApp创建应用
import App from './App.vue' //引入App根组件
import router from './router' //引入路由器
import {createPinia} from 'pinia' //引入pinia
import emitter from '@/utils/emitter' //引入emitter

// createApp(App).mount('#app') //创建App应用,挂载容器
const app = createApp(App)
app.use(router) //使用路由器
const pinia = createPinia() //创建pinia
app.use(pinia) //安装pinia
app.mount('#app')